package com.ysd.lis.controller;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.WkTestBig;
import com.ysd.lis.service.WkTestBigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 考试-大题分组表 前端控制器
 * </p>
 *
 * @author LiuQi
 * @since 2024-04-02
 */
@RestController
@RequestMapping("/wk/test/bigSubject")
public class WkTestBigController extends BaseController {

    @Autowired
    WkTestBigService wkTestBigService;

    @GetMapping("/getTestBigSubjectList")
    public Result getTestBigSubjectList(@RequestParam("paperId") String paperId) {
        return wkTestBigService.getTestBigSubjectList(paperId);
    }

    @PostMapping("/addTestBigSubject")
    public Result addTestBigSubject(@RequestBody WkTestBig wkTestBig) {
        return wkTestBigService.addTestBigSubject(wkTestBig);
    }
    @PostMapping("/editTestBigSubject")
    public Result editTestBigSubject(@RequestBody WkTestBig wkTestBig) {
        return wkTestBigService.editTestBigSubject(wkTestBig);
    }
    @PostMapping("/deleteTestBigSubject")
    public Result deleteTestBigSubject(@RequestBody WkTestBig wkTestBig) {
        return wkTestBigService.deleteTestBigSubject(wkTestBig);
    }
}
